package com.itheima.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.UserDao;
import com.itheima.pojo.SysUser;
import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserDao userDao;

    @Override
    public SysUser findSysUserAndRolesAndPermissionsByusername(String username) {
       SysUser user =  userDao.findSysUserAndRolesAndPermissionsByusername(username);
        return user;
    }
}
